package com.xcity.pomelo.response;

import java.util.List;

import com.xcity.db.entity.Player;
import com.xcity.game.common.GameStaticConfig;
import com.xcity.game.skill.SkillUtils;
import com.xcity.game.skill.v2.SkillManagerV2;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class SkillListV2Response extends Response {

	public long id;
	public List<SkillV2Info> list;
	public int points; // 剩余技能点数
	public int maxPoints; // 技能点数上限
	
	public SkillListV2Response(int serial, Player player, long ownerId, SkillManagerV2 manager) {
		super(serial);
		this.id = ownerId;
		list = SkillUtils.toResponse(manager);
		points = player.getSkillPoints();
		maxPoints = GameStaticConfig.maxSkillPoints;
	}

}
